[#macro includeCommonJS]
    <link href="${request.contextPath}/static/css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/bootstrapValidator.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/4.0.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/themify-icons.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/jquery.mmenu.all.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/jquery.mmenu.widescreen.css" type="text/css" rel="stylesheet" media="all and (min-width: 900px)">
    <link href="${request.contextPath}/static/css/jquery.mCustomScrollbar.min.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/switch.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/select2.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/icheck-blue.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/bootstrap-datetimepicker.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/tree.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/bootstrap-dialog.css" rel="stylesheet" type="text/css">
    <link href="${request.contextPath}/static/css/multi-select.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery.mmenu.min.all.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/main.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery.mousewheel.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery.mCustomScrollbar.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/switch.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/icheck.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/select2.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery.ztree.core-3.5.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery.ztree.exedit-3.5.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/module.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/uploader.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/bootstrap-dialog.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/bootstrap-paginator.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/bootstrapValidator.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/simpler-sidebar.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/jquery-sliding-menu.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/components/common.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/components/underscore.js"></script>
    <script type="text/javascript" src="${request.contextPath}/static/js/components/underscore.string.js"></script>

[/#macro]

[#macro displayPageFooter]
    <div id="content_footer"><hr>
        <p class="text-center font-12">Copyright © 2009 - 2013 上海易学宝网络科技有限公司</p>
        <p class="text-center font-12">沪ICP备102191675448号</p>
    </div>
[/#macro]

[#macro displayFlagStr flag]
    [#if flag == "1"]
    是
    [/#if]
    [#if flag == "0"]
    否
    [/#if]
[/#macro]

[#macro displayCourseStatusName status]
    [#if status == "UNPUBLISHED"]
        未发布
    [#elseif status == "UNAUDITED"]
        待审核
    [#elseif status == "UNPASSED"]
        不通过
    [#elseif status == "PUBLISHED"]
        已发布
    [#elseif status == "DISABLED"]
        已停用
    [/#if]
[/#macro]

[#macro displaySignUpAuditStatusName status]
    [#if status == "un_audit"]
    未审核
    [#elseif status == "audit_unpassed"]
    审核不通过
    [#elseif status == "audit_passed"]
    审核通过
    [/#if]
[/#macro]



[#macro displayCourseOpenName openType]
    [#if openType == "allOpen"]
    全部开放
    [#elseif openType == "partOpen"]
    部分开放
    [#elseif openType == "close"]
    不开放
    [/#if]
[/#macro]


[#macro displayCourseTypeName courseType]
    [#if courseType == "online"]
    在线
    [#elseif courseType == "face2face"]
    面授
    [/#if]
[/#macro]

[#macro showCatalogTree catalog]
    [#if catalog.sonCatalogs?? && catalog.sonCatalogs?size > 0]
        <li><a style="cursor: pointer" onclick="searchCourseByCatalogId('${catalog.catalogId}')">${catalog.catalogName}全部课程</a></li>
        [#list (catalog.sonCatalogs)?sort_by("catalogOrderNo") as sonCatalog]
            <li>
                <a style="cursor: pointer" [#if !sonCatalog.sonCatalogs?? || (sonCatalog.sonCatalogs?size == 0)] onclick="searchCourseByCatalogId('${sonCatalog.catalogId}')"[/#if]>${sonCatalog.catalogName}</a>
                [#if sonCatalog.sonCatalogs?? && sonCatalog.sonCatalogs?size gt 0]
                    <ul>
                        [@showCatalogTree sonCatalog/]
                    </ul>
                [/#if]
            </li>
        [/#list]
    [/#if]
[/#macro]


[#macro courseCenterBreadcrumb breadcrumbCatalogList]
    <ol class="breadcrumb">
        [#--<li><a href="">首页</a></li>--]
        [#if breadcrumbCatalogList?size == 0]
            <li><a href="/lrm/controller/courseCenter/search" style="color: #417cf2;">全部课程</a></li>
        [#else]
            <li><a href="/lrm/controller/courseCenter/search">全部课程</a></li>
        [/#if]
        [#list breadcrumbCatalogList as catalog]
            [#if catalog_has_next]
                <li><a style="cursor: pointer" onclick="searchCourseByCatalogId('${catalog.catalogId}')">${catalog.catalogName}</a></li>
            [#else]
                <li><a style="cursor: pointer;color: #417cf2;" onclick="searchCourseByCatalogId('${catalog.catalogId}')">${catalog.catalogName}</a></li>
            [/#if]
        [/#list]
    </ol>
[/#macro]

[#macro drawStarOrange score]
<span class="pull-right">
    [#assign halfStartNum = 0]
    [#assign fullStarNum = (score/2)?int ]
    [#if fullStarNum > 5]
        [#assign fullStarNum = 5]
    [/#if]
    [#if fullStarNum > 0]
        [#list 1..fullStarNum as x]
            <span class="ti-star-full-orange"></span>
        [/#list]
    [/#if]
    [#if score%2 != 0]
        <span class="ti-star-half-orange"></span>
        [#assign halfStartNum = 1]
    [/#if]
    [#assign nullStarNum = 5-halfStartNum-fullStarNum ]
    [#if nullStarNum > 0]
        [#list 1..nullStarNum as x]
            <span class="ti-star-orange"></span>
        [/#list]
    [/#if]
</span>
[/#macro]

[#macro drawStarOrangeInLeft score]
<span class="pull-left">
    [#assign halfStartNum = 0]
    [#assign fullStarNum = (score/2)?int ]
    [#if fullStarNum > 5]
        [#assign fullStarNum = 5]
    [/#if]
    [#if fullStarNum > 0]
        [#list 1..fullStarNum as x]
            <span class="ti-star-full-orange"></span>
        [/#list]
    [/#if]
    [#if score%2 != 0]
        <span class="ti-star-half-orange"></span>
        [#assign halfStartNum = 1]
    [/#if]
    [#assign nullStarNum = 5-halfStartNum-fullStarNum ]
    [#if nullStarNum > 0]
        [#list 1..nullStarNum as x]
            <span class="ti-star-orange"></span>
        [/#list]
    [/#if]
</span>
[/#macro]